package gamagora.game.world.maps.game
{
	import gamagora.game.entity.*;
	import gamagora.game.world.maps.OSMap;

	public class OSMap14 extends OSMap
	{
		public function OSMap14()
		{
			super();
			
			var ground:OSGround = new OSGround(0, 740, 960, 60, 0, false);
			ground.setNoErosionDown([96, 97, 98, 99, 100, 101, 102, 103, 127, 128, 129, 130, 131, 132, 133, 134]);
			ground.setNoErosionLeft([0, 48, 96]);
			ground.setNoErosionRight([47, 95, 143]);
			ground.erode();
			add(ground);
			
			ground = new OSGround(0, 800, 160, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6, 7]);
			ground.setNoErosionDown([1, 2, 3, 4, 5, 6]);
			ground.setNoErosionLeft([0]);
			ground.erode();
			add(ground);
			
			ground = new OSGround(0, 1040, 960, 40, 0, false);
			ground.setNoErosionUp([3, 4, 34, 35]);
			ground.setNoErosionLeft([0, 48]);
			ground.setNoErosionRight([47, 95]);
			ground.erode();
			add(ground);
			
			ground = new OSGround(20, 820, 120, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5]);
			ground.setNoErosionDown([1, 2, 3, 4]);
			ground.erode();
			add(ground);
			
			ground = new OSGround(40, 840, 80, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3]);
			ground.setNoErosionDown([1, 2]);
			ground.erode();
			add(ground);
			
			ground = new OSGround(60, 860, 40, 180, 0, false);
			ground.setNoErosionUp([0, 1]);
			ground.setNoErosionDown([16, 17]);
			ground.erode();
			add(ground);
			
			ground = new OSGround(260, 60, 480, 520, 0, false);
			ground.erode();
			add(ground);
			
			add(new OSBird(360, 20));
			
			add(new OSBird(460, 20));
			
			add(new OSBird(560, 20));
			
			ground = new OSGround(620, 800, 160, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6, 7]);
			ground.setNoErosionDown([1, 2, 3, 4, 5, 6]);
			ground.erode();
			add(ground);
			
			ground = new OSGround(640, 820, 120, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5]);
			ground.setNoErosionDown([1, 2, 3, 4]);
			ground.erode();
			add(ground);
			
			ground = new OSGround(660, 840, 80, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3]);
			ground.setNoErosionDown([1, 2]);
			ground.erode();
			add(ground);
			
			ground = new OSGround(680, 860, 40, 180, 0, false);
			ground.setNoErosionUp([0, 1]);
			ground.setNoErosionDown([16, 17]);
			ground.erode();
			add(ground);
			
			ground = new OSGround(750, 340, 200, 20, 0, true);
			ground.setBorders(true, true);
			add(ground);
			
			var pillar:OSEntity = new OSEntity(NOTHING, 780, 360); // +30 +20
			pillar.makeGraphic(10, 400, 0xff000000);
			addBackground(pillar);
			
			pillar = new OSEntity(NOTHING, 900, 360); // +150 + 20
			pillar.makeGraphic(10, 400, 0xff000000);
			addBackground(pillar);
			
			for(var i:uint=0;i<12;i++)
			{
				addForeground(new OSPillar(275 + i * 40, 574, 20, 180));
			}
		}
	}
}
